# -*- coding: utf-8 -*-
# @Time    : 2020/9/15 18:15
# @Author  : lq
# @Email   : 9462883@qq.com
# @File    : hm02_while.py
# @Software: PyCharm
# @Des     : 打印图像，

"""
正方形
j = 0
while j < 5 :
    i = 0
    while i < 5 :
        print("*",end="")  #“取消换行”  end取消默认换行符\n
        i += 1
    print()  #默认换行
    j += 1
"""
"""
三角形
j = 0
while j < 5 :
    i = 0
    while i <= j :
        print("*",end="")  #“取消换行”  end取消默认换行符\n
        i += 1
    print()  #默认换行
    j += 1
"""
"""
乘法口訣
"""
a = 1
while a < 10 :
    b = 1
    while b <= a :
        # print("{0}*{1}={2}".format(a,b,a*b),end = "\t")   # \t 制表符
        print(f"{a}*{b}={a*b}", end="\t")  # \t 制表符
        b += 1
    print()
    a += 1
